package com.ytjj.qmyx.mall.model.response;

import com.ytjj.qmyx.mall.model.ProductReviews;
import lombok.Data;
import org.springframework.beans.BeanUtils;

import java.util.Date;

@Data
public class ProductReviewsResponse {

    /**
     * 商品id
     *
     * @mbg.generated
     */
    private Integer productId;

    /**
     * 商品名称
     *
     * @mbg.generated
     */
    private String productName;

    /**
     * 商品图片
     *
     * @mbg.generated
     */
    private String productImg;

    /**
     * 用户id
     *
     * @mbg.generated
     */
    private Integer userId;

    /**
     * 昵称
     *
     * @mbg.generated
     */
    private String nickname;

    /**
     * 头像
     *
     * @mbg.generated
     */
    private String headImg;

    /**
     * 内容
     *
     * @mbg.generated
     */
    private String content;

    /**
     * 创建时间
     *
     * @mbg.generated
     */
    private Date createTime;

    /**
     * 修改时间
     *
     * @mbg.generated
     */
    private Date updateTime;

    public ProductReviewsResponse(ProductReviews productReviews){
        BeanUtils.copyProperties(productReviews, this);
    }

}
